﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using CollegeShop.WebProcessor;
using CollegeShop.Infrastructure.Entities.Enum;
using CollegeShop.Biz;

namespace CollegeShop.Web.Controllers
{
    [ErrorHandle]
    [Authorize]
    public class OrderController : Controller
    {
        //
        // GET: /Order/
        public ActionResult List(int page=0)
        {
            ViewBag.Data = OrderBiz.LoadOrderDetails(HttpContext.User.Identity.Name, page, 10);
            return View();
        }

    }
}
